#include "stdio.h"
#include "string.h"
#include "stdlib.h"

//自定义：字符串copy函数，完成字符串from ，到to的copy
void copy_str(char *from, char *to)
{
	for(;*from!='\0';from++, to++)
	{
		*to = *from;
	}
	*to = '\0'; // *to = NULL;
}
void main()
{
	char *p = "abcdefge";
	//char *p2 = NULL;
	char target[100] ;
	copy_str(p, target);

	//strcpy(p2, "abcdeeg");
	printf("target:%s\n", target);

}